package com.newbingo.entity;

import java.io.Serializable;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/*
 * 操作员实体
 */
@Entity
public class Operator extends User implements Serializable {
	private Agent agent;
	
	@ManyToOne(cascade=CascadeType.MERGE,fetch=FetchType.LAZY)
	public Agent getAgent() {
		return agent;
	}
	public void setAgent(Agent agent) {
		this.agent = agent;
	}
	
}
